package com.ego.admin.controller;

import com.ego.admin.po.SysAdmin;
import org.apache.shiro.SecurityUtils;

/**
 * @program: ego
 * @description: 存放登录人的信息
 * @author: KamTang
 * @create: 2022-11-11 11:11
 **/
public abstract class Administrator {
    protected SysAdmin getAdmin() {
        return (SysAdmin) SecurityUtils.getSubject().getPrincipal();
    }
}
